
package com.android.volley.http;

import java.io.IOException;
import java.io.OutputStream;

public interface ContentBody {

    /** 文本参数和字符集 */
    final String TYPE_TEXT_CHARSET = "text/plain; charset=UTF-8";

    /** 字节流参数 */
    final String TYPE_OCTET_STREAM = "application/octet-stream";

    /** 二进制参数 */
    final String BINARY_ENCODING = "Content-Transfer-Encoding: binary";

    /** 文本参数 */
    final String BIT_ENCODING = "Content-Transfer-Encoding: 8bit";

    String getContentType();

    String getContentTransferEncoding();

    String getFileName();

    void writwTo(OutputStream out) throws IOException;
}
